package com.ls.service;

import com.ls.mapper.UserRoleMapper;
import com.ls.model.UserRole;
import com.ls.util.BaseMapper;
import com.ls.util.BaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p></p>
 * Created by zhezhiyong@163.com on 2017/2/14.
 */
@Service
public class UserRoleService extends BaseServiceImpl<UserRole, Integer> {

    @Resource
    private UserRoleMapper userRoleMapper;

    @Override
    public BaseMapper getMapper() {
        return userRoleMapper;
    }

    public int deleteByUserId(int userId) {
        return userRoleMapper.deleteByUserId(userId);
    }

}
